# -*- coding: utf-8 -*-
# @Time : 2019/1/21 16:37
# @Author : Administrator
# @File : start.py
# @Project : code
# @title : 用例执行入口
import unittest,HTMLTestRunner
from boss_GUI.cases import stu_manage,test_decode


if __name__ == '__main__':
    suite = unittest.TestSuite()
    # suite.addTests(unittest.TestLoader().loadTestsFromModule(stu_manage))
    list1 = [test_decode,stu_manage]
    list2 = []
    for i in list1:
        ele = unittest.TestLoader().loadTestsFromModule(i)
        list2.append(ele)
    suite.addTests(list2)
    with open('../report/woniuboss_report.html','w',encoding='utf8') as f:
        runner =HTMLTestRunner.HTMLTestRunner(stream=f,verbosity=2,title='woniuboss测试报告')
        runner.run(suite)